package com.xyf.sys.mapper;

import com.xyf.sys.domain.UserDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDeptMapper {
    int deleteByPrimaryKey(UserDept key);

    int insert(UserDept record);

    int insertSelective(UserDept record);

    List<UserDept> selectByUserId(String userId);

    int deleteByUserId(String userId);

    UserDept selectByUserIdAndDeptId(@Param("userId") String userId, @Param("deptId")Long deptId);
}